package com.xiaojimao.Utils;

import com.xaiojimao.gr_common.CommonPojo.OpenUser;

public class ThreadLocalUtil {
    public static ThreadLocal<OpenUser> threadLocal = new ThreadLocal<>();

    public static Long getUserId() {
        return threadLocal.get().getId();
    }

    public static void setUser(OpenUser openUser) {
        threadLocal.set(openUser);
    }
}
